#include "glare.core.AndroidWindow.h"

namespace Glare {

	AndroidWindow::AndroidWindow(const uint& width, const uint& height, ConstructionParams* params) 
		: PlatformWindow(width, height)
		, _construction_params(static_cast<AndroidWindowConstructionParams*>(params))
	{
	}

	AndroidWindow::~AndroidWindow()
	{
	}

	const PlatformWindowType AndroidWindow::GetWindowType() const
	{
		return PWT_Android;
	}

	const uint AndroidWindow::GetCanvasWidth(const RenderWindow* render_window) const
	{
		return ANativeWindow_getWidth(_construction_params->NativeWindow);
	}

	const uint AndroidWindow::GetCanvasHeight(const RenderWindow* render_window) const
	{
		return ANativeWindow_getHeight(_construction_params->NativeWindow);
	}

	ANativeWindow* AndroidWindow::GetNativeWindow() const
	{
		return _construction_params->NativeWindow;
	}
}
